package com.jdrx.sw.sewage.beans.dto;

import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "新增水质化验报表模板参数", description = "新增水质化验报表模板参数")
@Data
public class WaterQualityTestTemplateAddDTO {
	@ApiModelProperty(value = "模板名称", required = true)
	@NotBlank
	private String name;
	
	@ApiModelProperty(value = "文档链接", required = true)
	@NotBlank
	private String attach;
	
	@ApiModelProperty(hidden = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createAt = LocalDateTime.now();
}